package view;
import java.awt.*;
import javax.swing.*;

public class InfoWindow extends JDialog {


	private static final long serialVersionUID = 1L;
	private JTextPane infoText = new JTextPane();

	public InfoWindow()  {
		
		this.setUndecorated(true);
		this.setSize(600, 300);
		centerOnScreen(this);

		infoText.setBackground(new Color(243, 243, 130));
		infoText.setBorder(BorderFactory.createLineBorder(Color.BLACK));
	
		this.add(infoText);
		this.setBackground(new Color(243, 243, 130));
	}

	private void centerOnScreen(Container c) {
		Dimension paneSize = c.getSize();
		Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
		c.setLocation((screenSize.width - paneSize.width) / 2,
				(screenSize.height - paneSize.height) / 2);
	}

	public JTextPane getInfoText() {
		return infoText;
	}

	public void setInfoText(JTextPane infoText) {
		this.infoText = infoText;
	}
}
